<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script src="./vue.js"></script>

    <script>
        // 1. 基于数据渲染tab栏
        // 2. 准备下标记录高亮的是哪一个tab
        // 3. 基于下标，动态控制class类名
        const app = new Vue({
            el: '#app',
            data: {
               activeindex: 0,
               list: [
                {id:1, name:'秒杀'},
                {id:1, name:'特价'},
                {id:1, name:'品类'},
               ]
            }
        })
    </script>
    
</body>
</html>